package com.yw.dataStandardCatalog.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@TableName(value = "data_standard_catalog")
public class DataStandardCatalog {
    @Id
    @Schema(description = "内码", name = "id")
    private Integer id;

    @Schema(description = "标准编号", name = "standardCode")
    @ExcelProperty("standardCode")
    private String standardCode;

    @Schema(description = "中文名称", name = "cName")
    @ExcelProperty("cName")
    private String cName;

    @Schema(description = "英文名称", name = "eName")
    @ExcelProperty("eName")
    private String eName;

    @Schema(description = "标准说明", name = "standardDesc")
    @ExcelProperty("standardDesc")
    private String standardDesc;

    @Schema(description = "来源机构", name = "sourceOrgan")
    @ExcelProperty("sourceOrgan")
    private String sourceOrgan;

    @Schema(description = "数据类型", name = "numberType")
    @ExcelProperty("numberType")
    private String numberType;

    @Schema(description = "数据长度", name = "length")
    @ExcelProperty("length")
    private Integer length;

    @Schema(description = "数据精度", name = "numAccuracy")
    @ExcelProperty("numAccuracy")
    private Integer numAccuracy;

    @Schema(description = "默认值", name = "defaultNum")
    @ExcelProperty("defaultNum")
    private String defaultNum;

    @Schema(description = "取值范围", name = "valueRange")
    @ExcelProperty("valueRange")
    private String valueRange;

    @Schema(description = "枚举范围", name = "code")
    @ExcelProperty("code")
    private String code;

    @Schema(description = "是否为空", name = "isEnable")
    @ExcelProperty("isEnable")
    private Integer isEnable;

    @Schema(description = "标准状态", name = "standardState")
    @ExcelProperty("standardState")
    private Integer standardState;

    @Schema(description = "创建时间", name = "createTime")
    @ExcelProperty(value = "createTime", format = "yyyy/MM/dd HH:mm")
    private LocalDateTime createTime;

    @Schema(description = "更新时间", name = "updateTime")
    @ExcelProperty(value = "updateTime", format = "yyyy/MM/dd HH:mm")
    private LocalDateTime updateTime;

    @Schema(description = "文件地址", name = "url")
    @ExcelProperty("url")
    private String url;
}